/*
 * User: rant
 * Date: 21/01/2007
 *
 *
 */
package laMalinche.rete.conditions;

import laMalinche.testingPlayGround.testModel.PropertyFinder;
import laMalinche.rete.rule.Condition;

import java.util.*;

/**
 *
 */
public abstract class FieldCondition  implements Condition {
    private PropertyFinder propertyFinder;
    private String ognl;

    public PropertyFinder getPropertyFinder() {
		return propertyFinder;
	}

    public void setPropertyFinder(final PropertyFinder propertyFinder) {
		this.propertyFinder = propertyFinder;
	}

    public String getOgnl() {
		return ognl;
	}

	public void setOgnl(final String ognl) {
		this.ognl = ognl;
	}


	protected Set<String> getExcludedFields() {
		final Set<String> list = new HashSet<String>();
		list.add(getOgnl());
		return list;
	}
}